home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18235 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: iclnet.org!usenet
  2. From: Olivier ABDOUN <adde@adde.fr>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: How to Create a Tabbed View MDI Child Window, just like the Database Window in MS Access? Help me please.
  5. Date: Fri, 19 Apr 1996 17:32:08 +0100
  6. Organization: A.D.D.E
  7. Message-ID: <3177C008.2E0E@adde.fr>
  8. References: <3175C1D6.4316@asu.edu>
  9. NNTP-Posting-Host: adde143.adde.fr
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (WinNT; I)
  14.  
  15. Frank Guohua Li wrote:
  16. > Can anybody help me please. I need to design a MDI window that has a tabbed view in it.
  17. > Detailed descriptions are following:
  18. > 1. It should be a MDI child window, not a Property Dialog.
  19. > 2. The MDI window should be resizable. And the Tabbed View inside the MDI window should
  20. >    be sized according to the MDI child window.
  21. > 3. There are vertical and horizon scrollbars within the Tabbed View (not in the MDI window).
  22. > 4. Some good examples will be The "Database Window" in MS Access and the "Project    Workspace
  23. > window" in Visual C++ 4.x.
  24. > Any help is highly appreciated!
  25.  
  26. When you inspect the MS Access tabbed view with Spy++, you can see that the window class is "SysTabControl32".
  27. So one solution is to take inspiration from the CTreeView (MFC 4.0) and to derive a new class from CCtrlView 
  28. with "SysTabControl32" as window class name.
  29. Another solution is to add a CTabCtrl member to your view and look at the "Creating a Tab Control" article 
  30. (Visual C++ 4.0 Book OnLine : SDKs\Win32 SDK\Win32\Overviews\Common Controls\Tab Controls\Using Tab Controls) 
  31. to manage this member.
  32. I tried the two solutions, and even if the first is very elegant, the second appeared more flexible. The real 
  33. problem, in fact, is to find an easy way to manage the display area of each tab (CTabCtrl::AdjustRect method), 
  34. but I've no advise for this because I'm still looking for this way...
  35.  
  36.     Good Luck,
  37.         Olivier.
  38.  
  39. ///////////////////////////////////////////////////////
  40. //  Olivier ABDOUN
  41. //  --------------
  42. //  A.D.D.E Logicels et Services de Cartographie
  43. //  17, rue Louise Michel
  44. //  BP 29
  45. //  92301 LEVALLOIS-PERRET Cedex
  46. //  FRANCE
  47. //  Phone: 33 (1) 47 58 37 05
  48. //  Fax:   33 (1) 47 58 76 46
  49. //  email: adde@adde.fr
  50. //  Web:   http://www.adde.fr
  51. ///////////////////////////////////////////////////////
  52.